#ifndef __AKY_FUNC_H__
#define __AKY_FUNC_H__
#include "aky_program/aky_define.h"

typedef enum
{
    MOUNT_SPI_FLASH = 0,
    MOUNT_SD_CARD,
}e_mount_type_t;

extern e_mount_type_t g_mount_type;
extern s_time_t g_s_time;
extern uint32_t g_u32_tick_cnt;
extern char fmt_buf[];
extern char fmt_buf2[];
extern uint8_t g_secon;

void aky_func_init(void);
void set_back_light_pwm(uint16_t pwm_value);
void mount_spi_flash_to_usb(void);
void mount_sd_to_usb(void);
void bar_anim(lv_task_t* t);
void bat_bar_set_anim_target_val(uint16_t bar_val, uint16_t label_val);
void bat_bar_fast_set_val(uint16_t val);
void bat_bar_init(void);
void get_time(void);
void screen_flush_pro(void);
void screen_init(void);
void signal_set_on_off(uint8_t flag_on_off);
void screen_stop(void);
void off_time_clr(void);
uint8_t get_bl_level(uint16_t val);
void set_bl_by_level(uint8_t level);
void stat_bar_stop_flush(uint8_t stat);
void stat_bar_restart_flush(void);
s_slide_info_t get_slide_info(lv_point_t p_start, lv_point_t p_end);
char *get_gender_str(e_gender_t gender);
void info_power_off(void);
void aky_block_delay_ms(const uint32_t ms);
uint8_t get_bar_level_by_sys_dia(uint8_t sys, uint8_t dia);
uint16_t get_last_mem_gap_day(e_user_t e_user,s_mem_t s_mem);
uint8_t get_mem_5_days_high(e_user_t e_user);
// void fatsf_txt_load_mem(void);
void syn_mem_to_net_control(uint8_t stat);
void syn_mem_to_net_pro(void);
void all_power_control_pro(void);
uint8_t get_send_end_stat(void);
void bar_anim(lv_task_t* t);
void set_disp_bat_flash(uint8_t flag_onoff);
void set_back_light_init(void);

#endif //__BOOTSCREEN_H__